#!/bin/bash

cat gray_color.lod | while read line
do  
    ((num=16#${line:0:2}))
    echo $num >> gray_color.out
    ((num=16#${line:2:2}))
    echo $num >> gray_color.out
    ((num=16#${line:4:2}))
    echo $num >> gray_color.out
    ((num=16#${line:6:2}))
    echo $num >> gray_color.out
done
